home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Messaging / DfltAcs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  2.7 KB  |  101 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DfltAcs.h
  3.  
  4.     Contains:    Implementation of Mac specific default accessors and handlers.
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1995 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>      10/15/96    JP        1244606, 1375124 : Improved Container &
  13.                                     added Active Part props.
  14.         <14>     6/20/95    NP        1260389: Fix DrawPart's count proc
  15.         <13>      6/7/95    eeh        1251403: add ASSERT_FRAME_MATCHES_PART
  16.         <12>     5/18/95    eeh        1250061: add CountEmbeddedFrames
  17.         <11>     4/14/95    NP        1239651: Remove shared constants from here.
  18.         <10>      4/7/95    eeh        1236842: added TrySwapToRootPart
  19.          <9>     3/24/95    eeh        1232249: remove frame from
  20.                                     DEFAULT_ACCESSOR_PARAMS
  21.          <8>     3/13/95    NP        1223764: CreateSwapToken should take an
  22.                                     ODFrame* parameter. Add frame param to
  23.                                     DEFAULT_ACCESSOR_PARAMS.
  24.          <7>      3/2/95    eeh        1214783: finish work on lists
  25.          <6>     2/22/95    eeh        1222901: add StandardPartToken
  26.          <5>     2/21/95    eeh        1214783: Accessor/handler API changes
  27.          <4>      2/3/95    eeh        1217393: mod. params to use new ODDesc etc.
  28.          <3>     1/27/95    TJ        NP: Added forward class declarations.
  29.          <2>     1/25/95    eeh        1214783: more implementation
  30.          <1>      1/18/95    eeh        first checked in
  31.  
  32.     To Do:
  33. */
  34.  
  35. #ifndef _DFLTACS_
  36. #define _DFLTACS_
  37.  
  38.  
  39. #ifndef _CNTXTOSL_
  40. #include "CntxtOSL.h"
  41. #endif
  42.  
  43. #if ODDebug
  44. void ASSERT_FRAME_MATCHES_PART( Environment *ev, ODFrame* frame, ODPart* part );
  45. #else
  46. #define ASSERT_FRAME_MATCHES_PART( ev, frame, part )
  47. #endif
  48.  
  49. class ODDesc;
  50. class ODOSLToken;
  51. class ODAppleEvent;
  52. class DefaultAccessorSI;
  53. class ODSession;
  54.  
  55.  
  56. #define DEFAULT_ACCESSOR_PARAMS    Environment        *ev,                    \
  57.                                 ODPart*            scriptlessPart,            \
  58.                                 DescType        desiredClass,            \
  59.                                 OSLToken*        container,                \
  60.                                 DescType        containerClass,            \
  61.                                 DescType        form,                    \
  62.                                 ODDesc*            selectionData,            \
  63.                                 ODOSLToken*        value,                    \
  64.                                 ODSession*        session                    \
  65.  
  66. //                                ODFrame*        frame                    \
  67.                                 
  68. typedef ODError (*PartAccessorProc)(DEFAULT_ACCESSOR_PARAMS);
  69.  
  70. ODError GetWildcardFromPart(DEFAULT_ACCESSOR_PARAMS);
  71.  
  72. ODError TrySwapToRootPart(DEFAULT_ACCESSOR_PARAMS);
  73.  
  74. ODError GetPartFromNULL(DEFAULT_ACCESSOR_PARAMS);
  75.  
  76. ODError GetPropFromProp(DEFAULT_ACCESSOR_PARAMS);
  77.  
  78. ODError GetPropFromNULL(DEFAULT_ACCESSOR_PARAMS);
  79.  
  80. ODError GetWildcardFromList(DEFAULT_ACCESSOR_PARAMS);
  81.  
  82.  
  83. typedef ODError (*EventHandlerProc)( Environment *ev,
  84.         ODPart* thePart, ODAppleEvent* message,
  85.         ODAppleEvent* reply, ODSession* session);
  86.  
  87. ODError HandleGetData(    Environment *ev,
  88.                         ODPart* thePart,
  89.                         ODAppleEvent* message,
  90.                         ODAppleEvent* reply,
  91.                         ODSession* session);
  92.  
  93. ODError HandleSetData(    Environment *ev,
  94.                         ODPart* thePart,
  95.                         ODAppleEvent* message,
  96.                         ODAppleEvent* reply,
  97.                         ODSession* session);
  98.  
  99. #endif
  100.  
  101.